<?php

/**
 * 违规大类仓库
 * @author wangwx 2015-5-12
 */
namespace common\repositories\myhtsq;
use common\repositories\BaseRepository;
use common\support\StringHelper;
use common\entities\myhtsq\ViolatedCategoryEntity;

class ViolatedCategoryRepository extends BaseRepository{

	/**
	 * 构造方法
	 * @param unknown $config (optional)
	 */
	public function __construct($config = [])
	{
		parent::__construct($config);
	}
	
    /**
     * 合同违规大类列表
     * @return array
     */
    public static function getViolatedCategoryListForDdl() {
        return ViolatedCategoryEntity::find()
                ->select('violated_category_id,category_name,order')                
                ->orderBy(['order' => SORT_ASC])
                ->all();
    }	
	
}